package com.fs;

import java.util.Scanner;

public class encipher {
    public static void main(String[] args) {

        Scanner user=new Scanner(System.in);
        System.out.println("请输入要加密的密码个数：");

        int n=user.nextInt();

        encipher(n);

    }
    public static void encipher(int n)
    {
        Scanner user=new Scanner(System.in);


        int arr[]=new int[n];

        for (int i=0;i<n;i++)
        {
            int number=user.nextInt();

            number=number+5;
            number%=10;
            arr[n-i-1]=number;
            System.out.println("已加密第"+(i+1)+"个");

        }
        System.out.println("加密后的密码为：");
        for(int i=0;i<n;i++)
        {
            System.out.print(arr[i]);
        }



    }
}
